package com.woniu40.petai_user.service;

import com.woniu40.petai_user.mapper.CoordinatesMapper;
import com.woniu40.petai_user.mapper.HospitalMapper;
import com.woniu40.petai_user.vo.CoordinatesVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class CoordinatesService {


    @Autowired
    CoordinatesMapper coordinatesMapper;

    public List<CoordinatesVo> findHospital(){

        List<CoordinatesVo> coordinatesVo = coordinatesMapper.selectHospital();
        return coordinatesVo;


    }

    public CoordinatesVo findHos(Integer hospitalId){

        CoordinatesVo coordinatesVo = coordinatesMapper.select(hospitalId);
        return coordinatesVo;


    }



}
